/**
 *  @file randomNumberGenerator.h
 *
 *  @date 15-dec-2009
 *  @author Ives van der Flaas
 */

#ifndef RANDOMNUMBERGENERATOR_H_
#define RANDOMNUMBERGENERATOR_H_

#include <cstdlib>
#include <ctime>

namespace si
{
/**
 * Singelton class that generates random numbers...
 */
class RandomNumberGenerator
{
public:
	static RandomNumberGenerator& get()
	{
		static RandomNumberGenerator gen;
		return gen;
	}

	/**
	 * Returns a random numer in range [low, high];
	 */
	int randomInRange(int low, int high);

private:
	RandomNumberGenerator()	{srand(time(0));}



};

}

#endif /* RANDOMNUMBERGENERATOR_H_ */
